<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 

<form id="pagerForm" method="get" model="viewRequest" action="#rel#">
	<input type="hidden" name="viewRequest.page" value="${page.number}" />
	<input type="hidden" name="viewRequest.size" value="${page.size}" />
	<c:forEach items="${viewRequest.params}" var="params">
		<input type="hidden"  name="viewRequest.params['${params.key}']" value="${params.value}" />
	</c:forEach>
	<c:forEach items="${viewRequest.sort}" var="sort">
		<input type="hidden" name="viewRequest.sort['${sort.key}']" value="${sort.value}" />
	</c:forEach>
</form>

<form rel="pagerForm" onsubmit="return dialogSearch(this);" action="${rootUrl}/member/bankcard" method="get">
<div class="pageContent">
	<input name="memberId" value="${memberId}" type="hidden">
	<table class="table" targetType="dialog"  width="100%" layoutH="60">
		<thead>
			<tr>
				<th width="30" align="center" >序号</th>
				<th width="120">银行卡名字</th>
				<th width="100">银行卡号</th>
				<th width="150">开户支行</th>
				<th width="100">持有人</th>
				<th width="100">是否默认</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.content}" var="bankcard" varStatus="status">
			<tr>
				<td>${status.count}</td>
 				<td>${bankcard.bank.name}</td>
				<td>${bankcard.bankCode}</td>
				<td>${bankcard.branch}</td>
				<td>${bankcard.cardholder}</td>
				<td>
				<c:if test="${bankcard.isDefault == 1 }">是</c:if>
				<c:if test="${bankcard.isDefault == 0 }">否</c:if>
				</td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="dialogPageBreak({numPerPage:this.value})">
				<option value="${page.size}">${page.size}</option>
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共${page.totalElements}条 </span>
		</div>
		<div class="pagination" targetType="dialog" totalCount="${page.totalElements}" numPerPage="${page.size}" pageNumShown="10" currentPage="${page.number}"></div>
	</div>
</div>
